package cn.dreamblog.service.impl;

import cn.dreamblog.dao.UserDao;
import cn.dreamblog.pojo.User;
import cn.dreamblog.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 项目名：dreamblog
 * 创建人：君忆zm
 * 创建时间：2019/11/5-15:23
 */
@Service("userService")
public class UserServiceImpl implements UserService{
    @Resource
    UserDao userDao;

    @Override
    public User login(User user) {
        return userDao.login(user);
    }

    @Override
    public Integer isEmptyByUser(String userName) {
        return userDao.isEmptyByUser(userName);
    }

    @Override
    public Integer add(User user) {
        return userDao.add(user);
    }
}
